home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 14 / CU Amiga Magazine's Super CD-ROM 14 (1997)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1997-09].iso / CUCD / Programming / AMOS / AMOSList0597 / AMOSLIST / text0212.txt < prev    next >
Encoding:
Text File  |  1997-06-01  |  2.3 KB  |  56 lines

  1. > >--==MURRAY==-- wrote:
  2. > > 
  3. > > I'm having a problem with Bobs. I've often had a problem with using
  4. > > Bob Off N and then shortly after redefining the Bob; Bob N,X,Y,I 
  5. > > If some unknown amount of time has not passed between the two
  6. > > commands, then the Bob doesn't get displayed when I call
  7. > > Bob Clear
  8. > > Bob Draw
  9. > > Screen Swap
  10. > > Wait Vbl
  11. > > Now this causes bobs to flash on and off at times which looks pretty
  12. > > awful.
  13. > > Basically the whole problem came about because I put a split screen
  14. > > two player mode in my game and AMOS doesn't allow the same bobs on
  15. > > different screens so I had to do all sorts of changes ..... but thats
  16. > > another LONG story.
  17. > Also, I`ve had that problem when you reach the edge of a large defined
  18. > screen say 512*512 which is only visible at 320*256, and I use Screen
  19. > Offset to scroll & paste icons as the player advances over the map. 
  20. > When the edge of the screen is met I call Bob off, reset the offset to
  21. > 0,0, screen copy the current viewport images to the new offset & the use
  22. > Bob n,x,y,i.  Some bob`s flicker.
  23.  
  24. Sounds something like what I had in a scrolling system but different .
  25. (?)
  26. I've got a vague feeling that this worked, although it sounds funny. 
  27. I'll check my program to be sure what I'm saying is right.
  28. But try:
  29. Screen Copy before you Clear Any Bobs
  30. Redefine Bobs to new position without Bob Off
  31. Bob Clear
  32. Bob Draw
  33. Screen Swap
  34. etc.
  35.  
  36. This may be totally wrong, I know it doesn't sound too good but the 
  37. solution I had (if it is the same problem) didn't seem right either, 
  38. but it worked.
  39.  
  40. -Murray
  41.  
  42.  
  43.            \\|//     Alastair Murray
  44.            (o o)       pmymagm@pmn1.maths.nott.ac.uk
  45. |~~~~~~oOOo~(_)~oOOo~~~~~|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
  46. |         AMINET         |Web-Page (Amiga/Games/AMOS/trek/Music/    |
  47. |     game/role/CHAOS    |                  +more)                  |
  48. |game/jump/Banana Islands|     http://www.cs.nott.ac.uk/~agm/       |
  49. |   game/shoot/Hanger18  |Current Projects: >Chaos 2                |
  50. |    dev/amos/keystate   | >Kill Em All     >Hanger 18 II           |
  51. |    dev/amos/picpack    | >Skool Daze      >The Crow               |
  52. |                        | >Game Creator    >Banana Islands         |
  53. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  54.  
  55.